﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageTeacher.aspx.cs" Inherits="Admin_Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="m_box">
            <div class="m_head">教师信息</div>
            <div class="m_middle">
                <div class="m_m_c"><span>查询条件</span></div>
                <div class="m_m_c">
                    <asp:DropDownList ID="DropDownList1" runat="server" Width="100px" Height="23px">
                        <asp:ListItem Value="USER_NAME">姓名</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="m_m_c">
                    <asp:TextBox ID="TextBox1" runat="server" Width="92px" Height="16px"></asp:TextBox>
                </div>
                <div class="m_m_c">
                    <asp:ImageButton ID="ImageButton1" runat="server"
                        ImageUrl="~/image/search.gif" OnClick="ImageButton1_Click" />
                </div>
            </div>
            <div class="m_content">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                    EnableModelValidation="True" Height="120%" Width="1497px"
                    AllowPaging="True" CellPadding="15" ForeColor="Black" GridLines="Horizontal"
                    OnPageIndexChanging="GridView1_PageIndexChanging"
                    OnRowDeleting="GridView1_RowDeleting" BackColor="White"
                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                    OnRowCancelingEdit="GridView1_RowCancelingEdit"
                    OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating">
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </ItemTemplate>
                            <ItemStyle />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="id" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" CssClass="tb" runat="server" Text='<%# Bind("id") %>' ReadOnly="True" BorderStyle="None"></asp:TextBox></EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="登录姓名">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("LOGIN_NAME") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" CssClass="tb" Width="80px" runat="server"
                                    Text='<%# Bind("LOGIN_NAME") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemStyle />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="用户姓名">
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("USER_NAME") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" CssClass="tb" Width="80px" runat="server"
                                    Text='<%# Bind("USER_NAME") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemStyle />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="密码">
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("LOGIN_PASS") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox4" CssClass="tb" Width="80px" runat="server"
                                    Text='<%# Bind("LOGIN_PASS") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemStyle />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="编辑  删除" ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="Button1" runat="server" CausesValidation="False"
                                    CommandName="Edit" Text="编辑" />
                                &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False"
                                    CommandName="Delete" Text="删除" OnClientClick="return confirm('您确认删除该记录吗?')" />
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:Button ID="Button1" runat="server" CausesValidation="True"
                                    CommandName="Update" Text="更新" />
                                &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False"
                                    CommandName="Cancel" Text="取消" />
                            </EditItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle HorizontalAlign="Center" />
                    <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                    <HeaderStyle BackColor="#3a9cff" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            </div>

        </div>
    </form>
</body>
</html>
